package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @Author: badaotianqiong
 * @Date: 2025/6/19 19:37
 * @Description:
 **/
@Data
public class LoginVo {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 6,message = "用户名不能小于6位")
    private String userName;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,}$",message = "密码必须包含大小写字母和数字")
    private String userPass;
}
